//
// Created by LiuDongPeng on 2024/1/29.
//

#ifndef FOC_STM32BASE_H
#define FOC_STM32BASE_H


#include <cstdint>
#include <tuple>
#include <functional>

#include "main.h"

#include "arm_math.h"


typedef std::function<int(uint8_t* pTxData, uint8_t* pRxData, uint16_t size, uint32_t timeOut)> spi_send_recv_t;
typedef std::function<void(bool val)> stm32_write_pin_t;







#endif //FOC_STM32BASE_H
